package com.aaa.stock.controller;


import com.aaa.stock.service.MedicinesService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.Map;

@RestController
@RequestMapping("stock/charge")
public class InvenooryController {

    @Resource
    private MedicinesService medicinesService;

    @PostMapping("down")
    public void downInvenory(@RequestBody Map<String, BigDecimal> map){
        System.out.println("111111111111111111111111");
        medicinesService.downInve(map);
    }
}
